import request from '@/utils/request'

export function listDocBase(query) {
  return request({
    url: '/system/docBase/list',
    method: 'get',
    params: query
  })
}
export function delDocBase(compFeeIds) {
  return request({
    url: '/system/docBase/' + compFeeIds,
    method: 'delete'
  })
}
export function docBaseAdd(data) {
  return request({
    url: '/system/docBase',
    method: 'post',
    data: data
  })
}
export function updateDocBase(data) {
  return request({
    url: '/system/docBase',
    method: 'put',
    data: data
  })
}

// 设置试验人/审核人 签字证书配置 0-未选中 1-试验人签字证书配置 2-审核人签字证书配置
export function setFlag(userDocCertTypeId, flag) {
  return request({
    url: '/system/docBase/setFlag/' + userDocCertTypeId + '/' + flag,
    method: 'put',
  })
}

export function docBaseInfo(query) {
  return request({
    url: '/system/docBase/' + query,
    method: 'get',
    params: query
  })
}
// 批量新增资格证书能力
export function batchAddUserDocCertType(data) {
  return request({
    url: '/system/docBase/batchAddUserDocCertType',
    method: 'post',
    data: data
  })
}
export function userDocCertType(query) {
  return request({
    url: '/system/docBase/userDocCertType',
    method: 'get',
    params: query
  })
}
// 确认员工档案
export function docBaseSure(userDocBaseId) {
  return request({
    url: '/system/docBase/sure/' + userDocBaseId,
    method: 'put',
  })
}
// 获取登录人档案详细信息
export function querySelf(query) {
  return request({
    url: '/system/docBase/querySelf',
    method: 'get',
    params: query
  })
}
export function userDocCertTypeSelf(query) {
  return request({
    url: '/system/docBase/userDocCertTypeSelf',
    method: 'get',
    params: query
  })
}
// 获取登录人档案详细信息
export function queryById(query) {
  return request({
    url: '/system/certType/queryByIds/' + query.certTypeIds,
    method: 'get',
    // params: query
  })
}


